package com.bwie.common.remote.system;/**
 * @Author：ShenJiaFeng
 * @Package：com.bwie.common.remote.system
 * @Project：zg6_yuekao
 * @name：RemoteUserService
 * @Date：2024/5/17 9:55
 */

import com.bwie.common.constants.ServerNameConstants;
import com.bwie.common.domain.User;
import com.bwie.common.remote.system.factory.RemoteUserFactory;
import com.bwie.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 *@Author：ShenJiaFeng
 *@Package：com.bwie.common.remote.system
 *@Project：zg6_yuekao
 *@name：RemoteUserService
 *@Date：2024/5/17 9:55
 *@Description:
 */
@FeignClient(
        value = ServerNameConstants.SYSTEM_NAME,
        path = "/user",
        fallbackFactory = RemoteUserFactory.class
)
public interface RemoteUserService {
    @PostMapping("/findByPhone")
    public Result<User> findByPhone(@RequestParam String phone);
}
